//      panel.h
//      
//      Copyright 2011 DJ Shaji <djshaji@gmail.com>
//      
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the License, or
//      (at your option) any later version.
//      
//      This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
//      
//      You should have received a copy of the GNU General Public License
//      along with this program; if not, write to the Free Software
//      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
//      MA 02110-1301, USA.


#ifndef __PANEL_H
#define __PANEL_H

#include <gtk/gtk.h>
#include <april/april.h>

#include <stdlib.h>
#include <time.h>

#define WNCK_I_KNOW_THIS_IS_UNSTABLE
#include <libwnck/libwnck.h>

#include "button.h"

GtkWidget * panel_new ( void ) ;
void panel_show ( GtkWidget * panel ) ;

static GdkPixbuf * start_unpressed = null,
				 * start_pressed = null ;

typedef enum {
	PANEL_MENU_LAST_ITEM_WAS_FILE,
	PANEL_MENU_LAST_ITEM_WAS_FOLDER,
	PANEL_MENU_LAST_ITEM_WAS_UNKNOWN
} PANEL_MENU_LAST_ITEM ;

void panel_menu_button_unpressed ( GtkImageMenuItem * item ) ;
void panel_menu_button_pressed ( GtkImageMenuItem * item ) ;

void panel_menu_parse_file ( GtkMenu * menu, gchar * filename, gboolean is_root ) ;
void panel_menu_parse_folder ( GtkMenu * menu, gchar * folder, gboolean is_root ) ;

void panel_menu_reposition ( GtkMenu * menu, gint * x, gint * y, gboolean push_in, gpointer data ) ;
void panel_run ( void ) ;

GdkPixbuf * panel_menu_find_icon ( const gchar * name, gint size ) ;
void panel_menu_run ( gchar * program ) ;

void panel_menu_add_shutdown_options ( GtkMenu * menu ) ;
void panel_show_desktop ( void ) ;

void panel_quick_launch_parse ( GtkBox * ql ) ;
#endif
